
package laya.semi.process;

import laya.util.*;

public class IdentifiableException extends ProcessException
{
	private String m_oIdentity = null;
	private String m_oInhibitDesc = null;
	
	public IdentifiableException(int nErrCode, String oIdentity, String oInhibitDesc)
	{
		super(nErrCode, new String[] {oIdentity, oInhibitDesc});
		m_oIdentity = oIdentity;
		m_oInhibitDesc = oInhibitDesc;
	}
	
	public IdentifiableException(int nErrCode, String oIdentity, Throwable t)
	{
		super(nErrCode, new String[] {oIdentity, t.getClass().getName(), t.getMessage()});
		m_oIdentity = oIdentity;
		m_oInhibitDesc = t.getClass().getName();
	}
	
	public String getIdentity()
	{
		return m_oIdentity;
	}
	
	public String getDescription()
	{
		return m_oInhibitDesc;
	}
}
